package com.factory_strategy_template;

import org.springframework.stereotype.Component;

@Component
public class lisiHandler extends Handler{

    public lisiHandler() {

    }

    public void printName(){
        System.out.println("lisi");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        HandlerFactory.registerHandler("李四",this);
    }
}
